package gbench.sandbox.matlib;

import static java.lang.Math.PI;

import gbench.common.matlib.MatlibCanvas.Range;

public class JunitPoint {
    /**
     * 绘制一个椭圆
     * @param args
     */
    public static void main(String args[]) {
        
        System.out.println("------Range.P(PI,-PI,1)--------");
        Range.P(PI,-PI,1).forEach((i,e)->{System.out.println(i+"--->"+e);});
        System.out.println("------Range.P(PI,-PI,5)--------");
        Range.P(PI,-PI,5).forEach((i,e)->{System.out.println(i+"--->"+e);});
        System.out.println("------Range.P(PI,-PI,0)--------");
        Range.P(PI,-PI,0).forEach((i,e)->{System.out.println(i+"--->"+e);});
        
        System.out.println("\n------Range.P2(PI,-PI,1)--------");
        Range.P2(PI,-PI,1).forEach((i,e)->{System.out.println(i+"--->"+e);});
        System.out.println("------Range.P2(PI,-PI,5)--------");
        Range.P2(PI,-PI,5).forEach((i,e)->{System.out.println(i+"--->"+e);});
        System.out.println("------Range.P2(PI,-PI,0)--------");
        Range.P2(PI,-PI,0).forEach((i,e)->{System.out.println(i+"--->"+e);});
        
        System.out.println("\n------Range.of(PI,-PI).limit(1)--------");
        Range.of(PI,-PI).limit(1).forEach((i,e)->{System.out.println(i+"--->"+e);}); 
        System.out.println("------Range.of(PI,-PI).limit(5))--------");
        Range.of(PI,-PI).limit(5).forEach((i,e)->{System.out.println(i+"--->"+e);}); 
        System.out.println("------Range.of(PI,-PI).limit(0))--------");
        Range.of(PI,-PI).limit(0).forEach((i,e)->{System.out.println(i+"--->"+e);});
    }
}
